package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 公告管理对象 announcement
 * 
 * @author yaya
 * @date 2025-02-10
 */
public class Announcement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 公告id */
    private Long announcementId;

    /** 标题 */
    @Excel(name = "标题")
    private String announcementTitle;

    /** 内容 */
    @Excel(name = "内容")
    private String announcementContent;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date releaseTime;

    /** 已删除 */
    @Excel(name = "已删除")
    private Long isDeleted;

    public void setAnnouncementId(Long announcementId) 
    {
        this.announcementId = announcementId;
    }

    public Long getAnnouncementId() 
    {
        return announcementId;
    }
    public void setAnnouncementTitle(String announcementTitle) 
    {
        this.announcementTitle = announcementTitle;
    }

    public String getAnnouncementTitle() 
    {
        return announcementTitle;
    }
    public void setAnnouncementContent(String announcementContent) 
    {
        this.announcementContent = announcementContent;
    }

    public String getAnnouncementContent() 
    {
        return announcementContent;
    }
    public void setReleaseTime(Date releaseTime) 
    {
        this.releaseTime = releaseTime;
    }

    public Date getReleaseTime() 
    {
        return releaseTime;
    }
    public void setIsDeleted(Long isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted() 
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("announcementId", getAnnouncementId())
            .append("announcementTitle", getAnnouncementTitle())
            .append("announcementContent", getAnnouncementContent())
            .append("releaseTime", getReleaseTime())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
